package org.freezer.backup;

import org.freezer.vixapi.Property;
import org.freezer.vixapi.Vix;
import org.freezer.vixapi.interfaces.VixProperty;

/**
 * 
 * @author Zoli
 */
public class BackupVM implements org.freezer.backup.interfaces.BackupVM{
    Vix vix;

    BackupVM(){
        
    }
    BackupVM(VixProperty vc){
        vc = (VixProperty) new Property();
    }


    public int hotBackup() {
        vix.takeSnapshot();
        //copy vm
        vix.deleteSnapshot();
        return 0;
    }

    public int normalBackup() {
        vix.suspend();
        vix.resume();
        return 0;
    }

    public int safeBackup() {
        //vix.guestShutdown();
        //vix.start();
        return 0;
    }

}
